package com.wcz.code.属性文件篇;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import com.wcz.code.属性文件篇.test.T;



/**
 * @author 伪尘子
 *
 * 2012-5-23
 */
public class PropertiesTest {
	
	
	
	public static  void main(String args[]){
		
		Properties p=new Properties();
		try {
			String classpath="/com/wcz/code/属性文件篇/test/config.properties";
			InputStream is=PropertiesTest.class.getResourceAsStream(classpath);
			p.load(is);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}		
		String value=p.getProperty("imgFilePath");
		System.out.println(value);
		
	}
	
}
